package com.steed.app.one.web;

import com.steed.app.one.web.remote.UserRemoteService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Description:
 *
 * @author Tony Zhu
 * @since 1.0-SNAPSHOT
 */
@RestController
@RequestMapping(value = "test")
@Slf4j
public class SayHelloController {

    @Resource
    private UserRemoteService userRemoteService;

    @RequestMapping(method = RequestMethod.GET)
    public String get(){
        log.info("who am i");
        userRemoteService.getUser();
        log.info("ohh, I know who am i now..");
        return "hello tony";
    }
}
